package com.example.logserver.controller;
<<<<<<< HEAD

import com.alibaba.fastjson.JSON;
import com.example.email_start.MailUtils;
import com.example.logserver.config.MailUtil;
=======
import com.bw.email_start.MailUtils;
import com.alibaba.fastjson.JSON;
>>>>>>> 1a08ad755b4b4733284a2da1219000e6d5f11771
import com.org.dto.TSfTerminationDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
<<<<<<< HEAD
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.javamail.JavaMailSender;
=======
>>>>>>> 1a08ad755b4b4733284a2da1219000e6d5f11771
import org.springframework.stereotype.Component;

@Component
@Slf4j
@RabbitListener(queues = "emaila")
public class MyEmail {

    /*@Autowired
    private MailUtils mailUtils;

    @RabbitHandler
    public void sendEmail(String s){
        TSfTerminationDto tSfTerminationDto = JSON.parseObject(s, TSfTerminationDto.class);
        mailUtils.sendSimpleMailMessage("3196790199@QQ.com","解约合同消息提醒","尊敬的用户"+tSfTerminationDto.getOwnerName()+
                "您好,您与维数公寓的租房合同已解约,感谢您的信任,也期待与您再次合作,再见");
        log.info("--------消息email接受成功-----------");
    }*/

}
